package huanzhao.erp.domain.exception;

import lombok.Getter;

/**
 * @author April
 * 2024/7/25 下午2:03
 * @version 1.0
 */
@Getter
public class RateLimitException extends RuntimeException {
    private final long ttl;

    public RateLimitException(String message, Long ttl) {
        super(message);
        this.ttl = ttl == null ? -1L : ttl;
    }
}
